package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备类型模板对象 drtypemode
 * 
 * @author yaozh
 * @date 2024-02-29
 */
public class Drtypemode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自动递增 */
    @Excel(name = "设备属性ID",width = 10)
    private Long typemodeid;

    /** 设备类型 */
    @Excel(name = "设备类型ID",width = 10)
    private Long drtypeid;

    @Excel(name = "设备类型名称",width = 13)
    private String drtypename;

    /** 寄存器名 */
    @Excel(name = "设备属性名称",width = 20)
    private String regName;

    /** 值类型 */
    @Excel(name = "值类型（7种类型固定：1、离散型(Bool)，2、长整型(DINT)，3、模拟型(Int)，4、字符型(WORD)，5、浮点型(Real)，6、64位浮点型(LReal)，7、32位无符号整型(DWORD)）",width = 7)
    private String regType;

    /** 单位 */
    @Excel(name = "单位",width = 7)
    private String regUnits;

    /** 读写 */
    @Excel(name = "读写（３种类型：1只读、2读写、3只写）",width = 7)
    private String regReadwrite;

    /** 初始值 */
    @Excel(name = "初始值",width = 7)
    private String tagValue;

    /** 变量分组 */
    @Excel(name = "属性分组ID",width = 10)
    private Long regGroupId;

    private Integer isThreeDShow;

    @Excel(name = "属性分组",width = 9)
    private String groupName;

    /** 显示顺序 */
    @Excel(name = "组内排序",width = 8)
    private Long regListshowlevel;

    /** 数据回显 */
    @Excel(name = "数据回显ID",width = 10)
    private String regSub;

    @Excel(name = "数据回显",width = 13)
    private String subName;

    /** 点位类型 */
    @Excel(name = "点位类型，1运行点位（正常），2报警点位，3故障点位",width = 10)
    private String regDrshowtype;

    /** 显示阀值 */
    @Excel(name = "显示阀值",width = 9)
    private String regDrsub;

    /** 是否历史 */
    @Excel(name = "是否历史",width = 9)
    private String ishistory;

    /** 是否能耗 */
    @Excel(name = "是否能耗",width = 9)
    private String isenergy;

    /** 是否报警 */
    @Excel(name = "是否报警",width = 9)
    private String isalarm;

    /** 报警类别 */
    @Excel(name = "报警类别",width = 10)
    private String alarmtype;

    /** 报警条件小值 */
    @Excel(name = "报警条件小值",width = 12)
    private String valueMin;

    /** 报警条件大值 */
    @Excel(name = "报警条件大值",width = 12)
    private String valueMax;

    /** 报警条件与或 */
    @Excel(name = "报警条件与或",width = 12)
    private String andOr;

    /** 报警级别（参考表alarmtype） */
    @Excel(name = "报警级别编码，0不是报警，1一般报警；2.严重报警；3.紧急报警；",width = 12)
    private String alarmLevel;

    @Excel(name = "报警级别，0不是报警，1一般报警；2.严重报警；3.紧急报警；",width = 10)
    private String alarmtypeExpain;

    /** 列表显示 */
    @Excel(name = "列表显示",width = 8)
    private String islistshow;

    /** 寄存器采集周期（用户自己填写的） */
    @Excel(name = "采集周期，5，10，30，60分钟存储",width = 10)
    private String tagTime;

    /** 颜色 */
    @Excel(name = "颜色",width = 8)
    private String regcolor;
    private String subname;
    private String alarmtypename;
    private String tagName;

    public void setTypemodeid(Long typemodeid) 
    {
        this.typemodeid = typemodeid;
    }

    public Long getTypemodeid() 
    {
        return typemodeid;
    }
    public void setDrtypeid(Long drtypeid) 
    {
        this.drtypeid = drtypeid;
    }

    public Long getDrtypeid() 
    {
        return drtypeid;
    }

    public String getDrtypename() {
        return drtypename;
    }

    public void setDrtypename(String drtypename) {
        this.drtypename = drtypename;
    }

    public void setRegName(String regName) 
    {
        this.regName = regName;
    }

    public String getRegName() 
    {
        return regName;
    }
    public void setRegType(String regType) 
    {
        this.regType = regType;
    }

    public String getRegType() 
    {
        return regType;
    }
    public void setRegUnits(String regUnits) 
    {
        this.regUnits = regUnits;
    }

    public String getRegUnits() 
    {
        return regUnits;
    }
    public void setRegReadwrite(String regReadwrite) 
    {
        this.regReadwrite = regReadwrite;
    }

    public String getRegReadwrite() 
    {
        return regReadwrite;
    }
    public void setTagValue(String tagValue) 
    {
        this.tagValue = tagValue;
    }

    public String getTagValue() 
    {
        return tagValue;
    }
    public void setRegGroupId(Long regGroupId) 
    {
        this.regGroupId = regGroupId;
    }

    public Long getRegGroupId() 
    {
        return regGroupId;
    }

    public Integer getIsThreeDShow() {
        return isThreeDShow;
    }

    public void setIsThreeDShow(Integer isThreeDShow) {
        this.isThreeDShow = isThreeDShow;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
    public void setRegListshowlevel(Long regListshowlevel) 
    {
        this.regListshowlevel = regListshowlevel;
    }

    public Long getRegListshowlevel() 
    {
        return regListshowlevel;
    }
    public void setRegSub(String regSub) 
    {
        this.regSub = regSub;
    }

    public String getRegSub() 
    {
        return regSub;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public void setRegDrshowtype(String regDrshowtype) 
    {
        this.regDrshowtype = regDrshowtype;
    }

    public String getRegDrshowtype() 
    {
        return regDrshowtype;
    }
    public void setRegDrsub(String regDrsub) 
    {
        this.regDrsub = regDrsub;
    }

    public String getRegDrsub() 
    {
        return regDrsub;
    }
    public void setIshistory(String ishistory) 
    {
        this.ishistory = ishistory;
    }

    public String getIshistory() 
    {
        return ishistory;
    }
    public void setIsenergy(String isenergy) 
    {
        this.isenergy = isenergy;
    }

    public String getIsenergy() 
    {
        return isenergy;
    }
    public void setIsalarm(String isalarm) 
    {
        this.isalarm = isalarm;
    }

    public String getIsalarm() 
    {
        return isalarm;
    }
    public void setAlarmtype(String alarmtype) 
    {
        this.alarmtype = alarmtype;
    }

    public String getAlarmtype() 
    {
        return alarmtype;
    }
    public void setValueMin(String valueMin) 
    {
        this.valueMin = valueMin;
    }

    public String getValueMin() 
    {
        return valueMin;
    }
    public void setValueMax(String valueMax) 
    {
        this.valueMax = valueMax;
    }

    public String getValueMax() 
    {
        return valueMax;
    }
    public void setAndOr(String andOr) 
    {
        this.andOr = andOr;
    }

    public String getAndOr() 
    {
        return andOr;
    }
    public void setAlarmLevel(String alarmLevel) 
    {
        this.alarmLevel = alarmLevel;
    }

    public String getAlarmLevel() 
    {
        return alarmLevel;
    }

    public String getAlarmtypeExpain() {
        return alarmtypeExpain;
    }

    public void setAlarmtypeExpain(String alarmtypeExpain) {
        this.alarmtypeExpain = alarmtypeExpain;
    }

    public void setIslistshow(String islistshow) 
    {
        this.islistshow = islistshow;
    }

    public String getIslistshow() 
    {
        return islistshow;
    }
    public void setTagTime(String tagTime) 
    {
        this.tagTime = tagTime;
    }

    public String getTagTime() 
    {
        return tagTime;
    }
    public void setRegcolor(String regcolor) 
    {
        this.regcolor = regcolor;
    }

    public String getRegcolor() 
    {
        return regcolor;
    }

    public String getSubname() {
        return subname;
    }

    public void setSubname(String subname) {
        this.subname = subname;
    }

    public String getAlarmtypename() {
        return alarmtypename;
    }

    public void setAlarmtypename(String alarmtypename) {
        this.alarmtypename = alarmtypename;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typemodeid", getTypemodeid())
            .append("drtypeid", getDrtypeid())
            .append("regName", getRegName())
            .append("regType", getRegType())
            .append("regUnits", getRegUnits())
            .append("regReadwrite", getRegReadwrite())
            .append("tagValue", getTagValue())
            .append("regGroupId", getRegGroupId())
            .append("regListshowlevel", getRegListshowlevel())
            .append("regSub", getRegSub())
            .append("regDrshowtype", getRegDrshowtype())
            .append("regDrsub", getRegDrsub())
            .append("ishistory", getIshistory())
            .append("isenergy", getIsenergy())
            .append("isalarm", getIsalarm())
            .append("alarmtype", getAlarmtype())
            .append("valueMin", getValueMin())
            .append("valueMax", getValueMax())
            .append("andOr", getAndOr())
            .append("alarmLevel", getAlarmLevel())
            .append("islistshow", getIslistshow())
            .append("tagTime", getTagTime())
            .append("regcolor", getRegcolor())
            .toString();
    }
}
